<?php

/**
 * ResetMemberCommand class
 *
 * @author Julot <andy.julot@gmail.com>
 * @since Friday, August 5, 2011. 09:49 AM
 */
class ResetMemberCommand extends CConsoleCommand {

	public function getHelp() {
		return <<<EOD
USAGE
    resetmember
DESCRIPTION
    This command will reset member's database system.
EOD;
	}

	/**
	 * Execute the action.
	 * @param array command line parameters specific for this command
	 */
	public function run($args) {
		echo "This command will reset member's database system.\n";
		echo "Would you like to continue? [Yes|No] ";
		if (strncasecmp(trim(fgets(STDIN)), 'y', 1)) return;

		$db = Yii::app()->db;
	}

}
